<?
 require("../inc/keywords.php");
 
 $results = getKeywords();
 
 $action = isset($_REQUEST['action']) ? $_REQUEST['action'] : null;
 
 switch($actions)
 {
 	
 	case 'POST':
					break;
		
	default: //GET - Index & Details
					$array = array();
					while($row = $results->fetch_assoc())
					{
						$array[] = $row;	
					}
					echo json_encode($array);
 }

?>